
import excel "dyadic_data.xlsx", sheet("Sheet1") firstrow clear
gen jointdem = 1 if a_dem == 1 & b_dem == 1
recode jointdem (.=0)
gen absdiffdem = 1 if jointdem == 0
recode absdiffdem (.=0)
gen absidealdiff = abs(a_ip - b_ip)
destring trade_importance, replace
logit shame ally ln_aid_dep ln_aid_pro trade_importance absidealdiff sameregion a_latentHR a_hrc b_latentHR a_lngdppc b_lngdppc absdiffdem
estimates store model1
estat ic
